﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo08
{
    class ShopNPC : NPC
    {
        private string shopInfo;

        public string ShopInfo {
            get { return this.shopInfo; }
            set { this.shopInfo = value; }
        }

        public ShopNPC(string name,NPCType type,string shopInfo):base(name,type) {
            this.shopInfo = shopInfo;
        }

        public override void speak()
        {
            Console.WriteLine("请问需要什么？NPC:{0},物品:{1}",this.Name,this.shopInfo);
        }
    }
}
